/**  
 * All rights Reserved, Designed By www.woniuxy.com
 * @Title:  Account.java   
 * @Package com.woniu.domain   
 * @Description:    Description  
 * @author: 蜗牛学院  
 * @date:   2019年8月27日 下午7:11:45
 * @user:   Administrator  
 * @version V1.0 
 * @Copyright: 2019 www.woniuxy.com Inc. All rights reserved. 
 * 注意：本内容仅限于成都蜗牛创想科技有限公司，禁止外泄以及用于其他的商业目
 */ 
package com.woniu.ssm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

import com.woniu.ssm.domian.User;



/**
 * @author Administrator
 *
 */
public interface UserMapper {
	@Insert("insert into user (uname,upass,age,birthday,gender,imgpath) values(#{uname},#{upass},#{age},#{birthday},#{gender},#{imgpath})")
	public int insert(User user);
	@Update("update user set uname = #{uname},upass = #{upass},age = #{age},birthday = #{birthday},gender = #{gender},imgpath = #{imgpath} where uid = #{uid}")
	public int update(User user);
	@Delete("delete from user where uid = #{id}")
	public int del(int id);
	public List<User> selectUser();
	public User selectUserByName(String uname);
	public User selectUserById(int uid);
}
